﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VipCo.Data;
using VipCo.Entities;

public partial class Controls_FooterControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// Xu ly su kien khi click button Gui
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    //protected void btGui_Click(object sender, EventArgs e)
    //{
    //    // Lay cac doi so can truyen vao
    //    string hoTen = tbHoten.Text.Trim();
    //    string email = tbEmail.Text.Trim();
    //    string sdt = tbSdt.Text.Trim();
    //    string noidung = tbNoidung.Text.Trim();

    //    // Tao moi doi tuong lien he
    //    LienHe entLienHe = new LienHe();

    //    entLienHe.Id = System.Guid.NewGuid();
    //    entLienHe.HoTen = hoTen;
    //    entLienHe.ThuDienTu = email;
    //    entLienHe.DienThoai = sdt;
    //    entLienHe.NoiDung = noidung;
    //    entLienHe.NgayCapNhat = Common.GetServerDateTime();

    //    // Thuc hien Insert vao CSDL
    //    try
    //    {
    //        bool status = DataRepository.LienHeProvider.Insert(entLienHe);            
    //    }
    //    catch (Exception)
    //    {
    //        Console.WriteLine("Xay ra loi khi them vao CSDL LienHe");
    //        throw;
    //    }

    //}
}